<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>这是一个sample</title>
		<%
			String path = request.getContextPath();
			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path;
		%>
		<LINK href="<%=basePath%>/css/global.css" type=text/css rel=stylesheet>
		<s:include value="../common/include.jsp"></s:include>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

	</head>

	<body class="workingArea">
		<s:form name="form1">
			<table class="innerTable">
				<tr>
					<td>
						id：
					</td>
					<td>
						<s:textfield name="sampleForm.queryId"></s:textfield>
						<s:fielderror id="errId" cssClass="topMenu"></s:fielderror>
						<s:actionerror/>
					</td>
					<td>
						name：
					</td>
					<td>
						<s:textfield name="sampleForm.name"></s:textfield>
					</td>
					<td>
						<s:submit action="sample" method="query" value="查询"></s:submit>
					</td>
				</tr>
			</table>



			<table class="innerTable">
				<tr class="tableTitle">
					<td>
						id
					</td>
					<td>
						name
					</td>
					<td>
						memo
					</td>
				</tr>
				<s:iterator value="queryList" status="st">
					<s:if test="#st.odd==true">
						<tr class="tableTextOdd">
					</s:if>
					<s:else>
						<tr class="tableTextEven">
					</s:else>
					<td>
						<s:property value="id" />
					</td>
					<td>
						<s:property value="name" />
					</td>
					<td>
						<s:property value="memo" />
					</td>
					</tr>
				</s:iterator>
			</table>
		</s:form>
	</body>
</html>
